﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Xml.Serialization;

namespace Hisun.Components
{
    public class SiteSettings
    {
        private Hashtable _Settings = new Hashtable();

        [XmlIgnore]
        public Hashtable Settings
        {
            get
            {
                return _Settings;
            }
            set
            {
                _Settings = value;
            }
        }

        /// <summary>
        /// 站点描述（备用）
        /// </summary>
        public string Description
        {
            set
            {
                _Settings["Description"] = value;
            }
            get
            {
                string key = "Description";

                if (_Settings[key] != null)
                    return (string)_Settings[key];
                else
                    return "";
            }
        }

        /// <summary>
        /// 站点Title
        /// </summary>
        public string Title
        {
            set
            {
                _Settings["Title"] = value;
            }
            get
            {
                string key = "Title";

                if (_Settings[key] != null)
                    return (string)_Settings[key];
                else
                    return "批量诊断";
            }
        }

        /// <summary>
        /// 站点采用的样式
        /// </summary>
        public string CssName
        {
            set
            {
                _Settings["CssName"] = value;
            }
            get
            {
                string key = "CssName";

                if (_Settings[key] != null)
                    return (string)_Settings[key];
                else
                    return "/Themes/Default/Style/css-red.css";
            }
        }

    }
}
